﻿<Window x:Class="DataForest.View.Dialogs.SplitValueDialogView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:converter="clr-namespace:DataForest.View.Converter"
        Title="Splitwert Ändern" Height="137.224" Width="377.582" WindowStyle="ToolWindow" ResizeMode="NoResize">
    <Window.Resources>

        <converter:DoubleToStringConverter x:Key="DoubleToStringConverter" />
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="81*"/>
            <ColumnDefinition Width="227*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="34"/>
        </Grid.RowDefinitions>
        <TextBlock x:Name="lblCaptionSplitValue" Grid.Row="0" TextWrapping="Wrap" Text="Splitwert:" HorizontalAlignment="Left" VerticalAlignment="Center" Height="16" Margin="10,3,0,9" Width="174" Grid.ColumnSpan="2"/>
        <TextBox x:Name="tbSplitValue" Grid.Column="1" Grid.Row="0" TextWrapping="Wrap" Text="{Binding SplitValue, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource DoubleToStringConverter}}" Margin="5,3,10,3" VerticalAlignment="Center" Height="22"/>
        <Button x:Name="btCancel" Content="Abbrechen" Grid.Column="1" Margin="0,0,10,5" Grid.Row="2" HorizontalAlignment="Right" Width="75" Height="22" VerticalAlignment="Bottom" IsCancel="True" Click="btCancel_Click"/>
        <Button x:Name="btOK" Content="OK" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,90,5" Grid.Row="2" Width="75" Height="22" VerticalAlignment="Bottom" Click="btOK_Click" IsDefault="True"/>
        <Slider Maximum="{Binding MaxSplitValue, UpdateSourceTrigger=PropertyChanged}" Minimum="{Binding MinSplitValue, UpdateSourceTrigger=PropertyChanged}" Value="{Binding SplitValue, UpdateSourceTrigger=PropertyChanged}" Margin="46,2,43,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="-9.833,-0.045" Grid.ColumnSpan="2" Height="25" TickPlacement="BottomRight"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,2,0,0" Grid.Row="1" TextWrapping="Wrap" Text="{Binding MinSplitValue, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource DoubleToStringConverter}}" VerticalAlignment="Top" Height="17" Width="29"/>
        <TextBlock HorizontalAlignment="Left" Margin="234,2,0,0" Grid.Row="1" TextWrapping="Wrap" Text="{Binding MaxSplitValue, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource DoubleToStringConverter}}" VerticalAlignment="Top" Height="17" Width="29" Grid.Column="1"/>
    </Grid>
</Window>
